home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-12-30 | 1.3 KB | 32 lines | [TEXT/GEOL] |
- Bruce Leak at Apple solved my sound problem (where my short sounds didn't
- always play back). Here's his link:
-
- ----
- The current QuickTime sound media handler only initiates sound playback at
- non-interrupt time (i.e. MoviesTask time). Since the frequency of MoviesTask
- calls is non-deterministic, sampling error can be introduced and the beginning
- samples of a sound edit will commonly be missed.
-
- Since QuickTime will never start a sound early, the edit will either be started
- exactly on time or late. If a sound is started late the beginning samples will
- be skipped to keep the sound (which may last hours) in sync with the other
- tracks.
-
- The sounds in your sample movie had durations of 11.6ms (≈130 samples @ 11khz).
- In order to consistently play more than 90% of this sound, MoviesTask would
- need to be called at a uniform rate of 1000 times per second.
-
- While this problem could be solved by an interrupt driven sound media handler,
- a straight forward work-around exists. Simply precede your click sounds with a
- small amount of silence to prevent the more interesting parts from being
- skipped by sampling error —— 1/10 of a second should suffice. This will add
- approximately 2K bytes to your file ( you only need it once per unique click
- since you multiply reference the same data ).
- ----
-
- This work-around seemed to fix the problem.
-
- -Eric
-
- Author: D1313
-